<?php

// This control presents auto-hide tips to administrators on
// the form for editing roles.
class RoleEditNotice extends PostBackControl{

   function RoleEditNotice(&$Context){
      $this->Name = 'RoleEditNotice';
      $this->Constructor($Context);
   }

   function Render(){
      if ($this->PostBackAction != "Role"){
        return;
      }
      $NoticeCollector = $this->Context->ObjectFactory->NewContextObject(
      	$this->Context,'NoticeCollector');
      $NoticeCollector->AddNotice($this->Context->GetDefinition(
      	'AutoHide_AutoHideRoleNotice'));
      $NoticeCollector->AddNotice($this->Context->GetDefinition(
      	'AutoHide_AutoHideModerationRoleNotice'));
      $NoticeCollector->Render();
   }

}

?>
